/*
	主要列表显示Grid控件
*/

Ext.define('EF.view.GeneralGrid',{
	extend: 'Ext.grid.Panel',
	
	alias: 'widget.generalgrid',
	
	layout: 'fit',
	border: false,
	columnLines: true,
	
	initComponent: function() {
		Ext.apply(this, {
		    dockedItems:[{
		    	xtype: 'toolbar',
		    	dock: 'top',
		    	
		    	items:[{
		    		xtype: 'textfield',
		    		name: 'txtSearch',
		    		emptyText: '请输入查询关键字',
		    		width: 280
		    	},{
		    		text: '查询',
		    		icon: 'resources/pic/search.png',
		    		scope: this,
		    		action: 'search'
		    	},{
		    		xtype: 'tbfill'
		    	},{
		    		text: '新增',
		    		icon: 'resources/pic/add.png',
		    		scope: this,
		    		action: 'add'
		    	},{
		    		xtype: 'tbseparator'
		    	},{
		    		text: '删除',
		    		icon: 'resources/pic/remove.png',
		    		scope: this,
		    		action: 'delete'
		    	}]
		    },{
		    	xtype: 'pagingtoolbar',
		    	dock: 'bottom',
		    	displayInfo: true
		    }]
		});
		
		this.callParent(arguments);
	}
});